// types/tenant.ts
export interface TenantOrganization {
  id: number
  name: string
  code: string
  status: 'active' | 'inactive' | 'pending' | 'suspended'
  contactPerson: string
  contactEmail: string
  contactPhone: string
  address: string
  createdAt: string
  updatedAt: string
  expiryDate?: string
  packageId?: number
}

export interface TenantUser {
  id: number
  name: string
  email: string
  phone: string
  role: string
  status: 'active' | 'inactive' | 'suspended'
  lastLogin?: string
  createdAt: string
  updatedAt: string
  organizationId: number
}

export interface TenantPackage {
  id: number
  name: string
  description: string
  price: number
  currency: string
  features: string[]
  limits: {
    users: number
    storage: number
    apiCalls: number
  }
  status: 'active' | 'inactive'
  createdAt: string
  updatedAt: string
}

export interface TenantBilling {
  id: number
  organizationId: number
  packageId: number
  amount: number
  currency: string
  periodStart: string
  periodEnd: string
  status: 'paid' | 'unpaid' | 'overdue' | 'cancelled'
  invoiceUrl?: string
  paymentDate?: string
  dueDate: string
  createdAt: string
  updatedAt: string
}